<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { useAppStore } from '@/stores/modules/app.ts'
let appStore = useAppStore()

</script>

<template>
  <el-config-provider :locale="zhCn" :size="'large'">
    <!-- 打开水印 -->
    <el-watermark
      v-if="appStore.watermarkEnabled"
      :content="appStore.watermarkContent"
    >
      <router-view />
    </el-watermark>
    <!-- 关闭水印 -->
    <router-view v-else />
  </el-config-provider>
</template>

<style scoped></style>
